
<?php
foreach($arr_banner as $key=>$val){
	if( trim($val['imageurl']) == '' ){
		echo '<a href="#" style="position:relative"><img src="'.get_bloginfo('url').'/timthumb.php?src='.$val['image'].'&w=294&h=281" alt="'.get_the_title($postid).'"/></a>';
	}else{
		echo '<a href="'.$val['imageurl'].'" target="'.$val['targeturl'].'" style="position:relative">';
			echo '<img src="'.get_bloginfo('url').'/timthumb.php?src='.$val['image'].'&w=294&h=281" alt="'.get_the_title($postid).'" />';
		echo '</a>';
	}
}
?>